package test1;

/**
 * @Author admin
 * @Date 2019/3/22 10:17
 */
public class CanonPrinter implements Printer {

    public void clean(){
        System.out.println("Cnclean");
    }

    @Override
    public void open() {
        System.out.println("Cnopen");
    }

    @Override
    public void print() {
        System.out.println("Cnprint");
    }

    @Override
    public void close() {
        clean();
        System.out.println("Cnclose");
    }
}
